package com.airticketbooking.mapper;

import lombok.Data;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.io.Serializable;
import java.util.List;

/**
 * (OrderDiscounttype)实体类
 *
 * @author makejava
 * @since 2024-11-13 16:42:02
 */

@Mapper
public interface OrderDiscounttypeMapper {


	@Insert("INSERT INTO airticketbooking.order_discounttype (order_id, discount_type_id) VALUES (#{orderid}, #{discounttypeId})")
	void add(Integer orderid, Integer discounttypeId);

	@Select("SELECT discount_type_id FROM airticketbooking.order_discounttype WHERE order_id = #{orderId}")
	Integer  getByOrderId (Integer orderId);

}

